package com.sx.medicinecard.common;

import lombok.Data;

@Data
public class ResponseData {

    private String code;
    private String message;
    private String hint;

    public static ResponseData error(String code, String message,String hint){
        ResponseData responseData = new ResponseData();
        responseData.setCode(code);
        responseData.setMessage(message);
        responseData.setHint(hint);
        return responseData;
    }


    public static ResponseData success(String code, String message,String hint){
        ResponseData responseData = new ResponseData();
        responseData.setCode(code);
        responseData.setMessage(message);
        responseData.setHint(hint);
        return responseData;
    }

}
